package com.k2data.app.k2bq.skylar360.request;

import com.k2data.app.k2bq.skylar360.common.GlobalVariables;

public class RequestConfUtil {

    public static RequestConf getTokenRequest() {
        RequestConf rc = new RequestConf();
        rc.setUrl(String.format("%s/oauth/token?client_id=skylar6_ent_odp&grant_type=password&username=%s&password=%s", GlobalVariables.URL, GlobalVariables.USERNAME, GlobalVariables.PASSWORD));
        rc.setMethod("GET");
        return rc;
    }

    public static RequestConf getRequest() {
        RequestConf rc = new RequestConf();
        rc.setUrl(String.format("%s/v1/virus/infection_list?access_token=%s", GlobalVariables.URL, GlobalVariables.ACCESS_TOKEN));
        rc.setMethod("GET");
        return rc;
    }

}
